package top.korori.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.korori.sv.entity.bo.SysSvUserBo;
import top.korori.sv.entity.vo.SysSvUserVo;
import top.korori.sv.service.SvUserService;
import top.korori.common.model.PageData;
import top.korori.common.model.Result;

/**
 * 短视频前台用户 前端控制器
 *
 * @author korori
 */

@Api(tags = "平台用户")
@RestController
@RequestMapping("/video/user")
public class SvUserController {

    @Autowired
    private SvUserService svUserService;

    @ApiOperation("获取平台用户列表")
    @GetMapping("/getUserList")
    public Result<PageData<SysSvUserVo>> getUserList(SysSvUserBo svUserBo){
        PageData<SysSvUserVo> sysUserVos = svUserService.getUserList(svUserBo);
        return Result.ok(sysUserVos);
    }
}
